package com.naiterui.ehp.bs.patient.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * @Description 评价星级信息
 * @Author gongbaoqiang
 * @Date 2020/6/30 5:26 PM
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Entity
@Table(name = "comment_stars_info")
public class CommentStarsInfo implements Serializable {
    private static final long serialVersionUID = 7889255873365979168L;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 星级
     */
    @Column(name = "level")
    private Integer level;

    /**
     * 星级描述
     */
    @Column(name = "description")
    private String description;

    @Column(name = "created_at")
    private Date createdAt;

    @Column(name = "created_by")
    private String createdBy;

    @Column(name = "changed_at")
    private Date changedAt;

    @Column(name = "changed_by")
    private String changedBy;


}
